
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="mvc" uri="http://www.springframework.org/tags/form" %>
<%@taglib prefix="fmt" uri="http://www.springframework.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>职位评定信息详情</title>
    <%--<link rel="stylesheet" href="/lib/pagination/style/pagination.css">--%>
    <link rel="stylesheet" href="/css/base/base.css?20201106.1">
    <link rel="stylesheet" href="/css/notice/noticeManagement.css">
    <script src="/js/common/language.js"></script>
    <%--<script src="/js/jquery/jquery.cookie.js"></script>--%>
    <script type="text/javascript" src="/js/jquery/jquery-1.9.1.js"></script>
    <script src="/js/base/base.js"></script>
    <script src="/js/webOffice/fileShow.js" type="text/javascript" charset="utf-8"></script>
    <%--<script type="text/javascript" src="/js/base/tablePage.js"></script>--%>

    <%--<script src="/lib/laydate/laydate.js"></script>--%>
    <%--<script src="/lib/jquery.form.min.js"></script>--%>
    <%--<script src="/lib/pagination/js/jquery.pagination.min.js" type="text/javascript" charset="utf-8"></script>--%>
    <%--<link rel="stylesheet" type="text/css" href="/css/commonTheme/${sessionScope.InterfaceModel}/commonTheme.css"/>--%>
    <style>
        table{
            width: 90%;
            margin: 0 auto;
        }
        table tr td{
            padding: 8px;
            font-size: 11pt;
            border-right: #ccc 1px solid;
        }
        table tr td:nth-child(odd){
            width: 120px;
        }
        .backBtn{
            width: 60px;
            height: 30px;
            text-align: center;
            line-height: 30px;
            border-radius: 4px;
            background: #2F8AE3;
            color: #fff;
            margin: 0 auto;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div class="navigation">
    <img src="/img/commonTheme/${sessionScope.InterfaceModel}/gonggaochaxun.png" alt="">
    <h2>职位评定信息详情</h2>
</div>
<div class="content">
    <table border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
        <tr>
            <td>评定对象：</td>
            <td><span class="byEvaluStaffs"></span></td>
            <td>批准人：</td>
            <td><span class="userName"></span></td>
        </tr>
        <tr>
            <td>获取职称：</td>
            <td><span class="postName"></span></td>
            <td>获取方式：</td>
            <td><span class="getMethod"></span></td>
        </tr>
        <tr>
            <td>申报时间：</td>
            <td><span class="reportTime"></span></td>
            <td>获取时间：</td>
            <td><span class="receiveTime"></span></td>
        </tr>
        <tr>
            <td>下次申报时间：</td>
            <td><span class="approveNextTime"></span></td>
            <td>下次申报职称：</td>
            <td><span class="approveNext"></span></td>
        </tr>
        <tr>
            <td>聘用职务：</td>
            <td><span class="employPost"></span></td>
            <td>聘用单位：</td>
            <td><span class="employCompany"></span></td>
        </tr>
        <tr>
            <td>聘用开始时间：</td>
            <td><span class="startDate"></span></td>
            <td>聘用结束时间：</td>
            <td><span class="endDate"></span></td>
        </tr>

        <tr>
            <td>评定详情：</td>
            <td colspan="3"><span class="remark"></span></td>
        </tr>
        <tr>
            <td>登记时间：</td>
            <td colspan="3"><span class="addTime"></span></td>
        </tr>
        <tr>
            <td>最后修改时间：</td>
            <td colspan="3"><span class="lastUpdateTime"></span></td>
        </tr>
        <tr>
            <td colspan="4"><div class="backBtn">关闭</div></td>
        </tr>
    </table>
</div>

<script type="text/javascript">
    $(function () {
        var incId=GetQueryString('dataId');
        $.ajax({
            type:'post',
            url:'/hr/manage/queryDetailEva',
            dataType:'json',
            data:{
                evaluationId:incId
            },
            success:function (res) {
                var datas=res.object;
                $('.userName').html(datas.userName);
                $('.byEvaluStaffs').html(datas.byEvaluStaffsName);
                $('.postName').html(datas.postName);
                $('.getMethod').html(dd(datas.getMethod));
                $('.reportTime').html(datas.reportTime);
                $('.receiveTime').html(datas.receiveTime);
                $('.approveNextTime').html(datas.approveNextTime);
                $('.approveNext').html(datas.approveNext);
                $('.employPost').html(datas.employPost);
                $('.employCompany').html(datas.employCompany);
                $('.startDate').html(datas.startDate);
                $('.endDate').html(datas.endDate);
                $('.remark').html(datas.remark);
                $('.addTime').html(datas.addTime);
                $('.lastUpdateTime').html(datas.lastUpdateTime);

            }
        })
        $('.backBtn').click(function () {
            window.close();
        })
    })
    function GetQueryString(name) {
        var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
        var r = window.location.search.substr(1).match(reg);
        if(r!=null)return  unescape(r[2]); return null;
    }


    //获取方式
    function dd (d) {
        switch(d)
        {
            case '':
                return ' '
                break;
            case '1':
                return '业绩考核'
                break;
            case '2':
                return '考试'
                break;
            default:
                return ' '
        }
    }
</script>

</body>
</html>